package service.impl;

import dao.ProfilePhotoDao;
import dao.impl.ProfilePhotoDaoImpl;
import domain.ProfilePhoto;
import service.ProfilePhotoService;

public class ProfilePhotoServiceImpl implements ProfilePhotoService {
    private ProfilePhotoDao dao=new ProfilePhotoDaoImpl();
    @Override
    public boolean addPhoto(ProfilePhoto profilePhoto) throws Exception {
        return dao.addPhoto(profilePhoto);
    }

    @Override
    public ProfilePhoto findNewestPhoto(String userId) throws Exception {
        return dao.findNewestPhoto(userId);
    }
}
